﻿
namespace eLearning.Model
{
    public class Dosen
    {
        public string Id { get; set; }
        public string Nip { get; set; }
        public string Username { get; set; }
        public string Password { get; set; }
        public string Nama { get; set; }
        public string Alamat { get; set; }
        public string Telepon { get; set; }
        public string Email { get; set; }

        public override string ToString()
        {
            return Nip + " - " + Nama;
        }

        public override bool Equals(object obj)
        {
            return Nip == (obj as Dosen).Nip;
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }
    }
}
